<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@page import="com.Dao.SubDao"%>
<%@page import="com.pojo.Sub"%>
    <%@page import="com.pojo.User"%>
    <%@page import="com.Dao.UserDao"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>HI视角| HI社区</title>
</head>
<body>
<header>
        <nav class="navbar navbar-default navbar-fixed-top">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">嗨社区</a>
            </div>
            <div class="navbar-collapse collapse navbar-responsive-collapse">
                <ul class="nav navbar-nav">
             
                    <li><a href="${pageContext.request.contextPath}/HI_travel.jsp">旅游</a></li>
                    <li><a href="${pageContext.request.contextPath}/HI_pleasure.jsp">娱乐</a></li>
                    <li><a href="${pageContext.request.contextPath}/HI_pe.jsp">体育</a></li>
                    <li><a href="${pageContext.request.contextPath}/HI_food.jsp">美食</a></li>
                    <li><a href="${pageContext.request.contextPath}/HI_scenery.jsp">美景</a></li>
                </ul>
                <form class="navbar-form navbar-left">
                    <input type="text" class="form-control col-lg-8" placeholder="搜索">
                </form>
                <ul class="nav navbar-nav navbar-right">
  
                <%if((User)session.getAttribute("user")!= null){ 
                	if(((User)session.getAttribute("user")).getUjst().equals("超级管理员")){%>
						<a style="color:#000;" href="personage/personage.jsp">			
						欢迎你<%= ((User)session.getAttribute("user")).getUname()%></a><span>|</span>
						<a href="./background/guanli.jsp">管理</a>
						<a href="controller/clena.jsp">退出</a>
						<%
							} 
						else{
						%>
						<a style="color:#000;" href="personage/personage.jsp">
						欢迎你<%= ((User)session.getAttribute("user")).getUname()%></a><span>|</span>
						<a href="controller/clena.jsp">退出</a>					
						<%
						   } 
						}
						else{
						%>		
								<a href="./login/login.jsp">登录</a>
						        <span>|</span>
						        <a href="./login/register.jsp">注册</a>
						<%
						}
						%>
						
						
                </ul>
            </div>
        </nav>
</header>
</body>
</html>